<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'app',
  updated(){

  },
    watch: {
    $route(to, from) {
      // 对路由变化作出响应...
      console.log('路由变更');
     
    }
  },
  mounted () {
          window.myvue = this
     if((this.$store.getters.getToken||'') === '' || (this.$store.getters.getMerchantId||'') === ''){
            this.$router.push('/login')
          }

  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

body {
	margin: 0px;
	padding: 0px;
	/*background: url(assets/bg1.jpg) center !important;
		background-size: cover;*/
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
}

</style>
